<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		onReady() {
			this.onelogin();
		},
		methods:{
			//判断是否一次登录
			onelogin(){
				if(!this.User.token){
				uni.redirectTo({
					url:"../userLogin/userLogin"
				})
				}
				else{
					uni.switchTab({
						url:"../index/index"
					})
					setTimeout(()=>{
						plus.navigator.closeSplashscreen();
					
					},1000)
					
					
				}
			}
		}
	}
</script>

<style lang="less">

</style>
